import request from '@/utils/request.js'

// 获取平台 1.0 2.0 TNCs
export const platform = () => {
    return [
        {
            label: 'CC-1.0',
            value: 0
        },
        {
            label: 'TNCS',
            value: 1
        },
        {
            label: 'CC-2.0',
            value: 2
        }
    ]
}

// CC-1.0 获取机构
export const cc0AgencyList = (data) => {
    return request({
        url: `/cc1/agency/getAgencyList`,
        method: 'get',
        params: data
    })
}

// TNCs 获取机构
export const TNCsAgencyList = () => {
    return request({
        url: '/project/agency/list',
        method: 'get'
    })
}

// CC-2.0 获取机构
export const cc2AgencyList = (data) => {
    return request({
        url: `/cc2/agency/getAgencyList`,
        method: 'get',
        params: data
    })
}

// CC-1.0 获取座席
export const cc0SeatsList = (id) => {
    return request({
        url: `/cc1/agent/${id}`,
        method: 'get'
    })
}
// CC-2.0 获取座席
export const cc2SeatsList = (id) => {
    return request({
        url: `/cc2/agent/${id}`,
        method: 'get'
    })
}

// 选择模版
export const getTemplate = (id) => {
    return request({
        url: `/template/list/${id}`,
        method: 'get'
    })
}
